<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">

		<title>16_ReMVCProject</title>

		<script src="../JQuery/jquery-3.6.0.min.js"></script>
		<script>
			
			//多用ajax，快
			function twe_get(){
				$.ajax({
					url:"http://localhost:8082/car2/get",
					data:null,
					
					success:function(data){
						console.log(JSON.stringify(data));
						$("#12_h5_1").text(JSON.stringify(data));
					},
					error:function(data){
						console.log(JSON.stringify(data));
						$("#12_h5_1").text(JSON.stringify(data));
					}
					
					
				})
			}
			
			
		</script>

	</head>
	<body>

		<h5 id="12_h5_1">12_h5_1 将显示get()</h5>

		<form action="#" method="post" id="12_form_1">
			<table>
				<!-- <input type="text" name="get" /> -->
				<input type="button" onclick="twe_get();" value="点击get()" />


			</table>


		</form>
	</body>
</html>
